/**
 * @param {string} s
 * @return {number}
 */
var maxDepth = function(s) {
  let brackets = 0, result = 0;
  for(let i = 0; i < s.length; i++) {
    if(s[i] == '(') {
      brackets++;
    } else if(s[i] == ')') {
      brackets--;
    } else {
      result =
    }
  }
};
let s = "(1+(2*3)+((8)/4))+1";
console.log(maxDepth(s));
s = "(1)+((2))+(((3)))";
console.log(maxDepth(s));
